package com.example.s16_springsecurity.service;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.stereotype.Service;

@Service
public class RegService
{

    public String getCrypt(String pass)
    {
        BCryptPasswordEncoder encoder = new BCryptPasswordEncoder(10);
        String pass2 = encoder.encode(pass);
        return pass2;
    }

}
